Volatility Stop Strategy (by Coinrule)Traders often use the volatility stop to protect trades dynamically, adjusting the stop price gradually based on the asset's volatility.
Just like the volatility stop is a great way to capture trend reversals on the downside, the opposite applies as well. Therefore, another useful application of the volatility stop is to add it to a trading system to signal potential trend reversals to catch a good buy opportunity.
ENTRY
- When the price crosses above the Volatility Stop
EXIT
- When the price crosses below the Volatility Stop
For this strategy, the Volatility stop's multiplier is set to 3 to allow more flexibility to the trade. The strategy is designed for medium-term trades.
Based on the backtest result from a sample of crypto trading pairs, the most profitable time frame is the 2-hr.
The strategy works well with both crypto-to-crypto and crypto-to-fiat pairs. To make results more realistic, a trading fee of 0.1% is added to the script. The fee is aligned to the base fee applied on Binance.
Search in scripts for "the script"
Bagheri IG Ether v2In this version, the winning ratio has been decreased, but the Risk to Reward Ratio (RRR) has been set to be better than the previous version.
This is a technical trading strategy for Ethereum ( BINANCE:ETHUSDT ). We built and developed it on MetaEditor and optimized it with MetaTrader optimizer.
The main indicators are Donchian Channel, Oscillator of ROC , Bears Power, Balance of Power , and Simple Moving Average ( SMA ). Default values in the input panel are the best combination of these indicators, but you can change any of them and try it for better results.
Please notice that this strategy has been optimized on the 1-minute chart of Ethereum .
For each position, you can see the Take Profit (TP) and Stop Loss (SL) levels. Also, you can find the values of mentioned TP and SL in points from the input panel of the script.
Attention: The price of Ethereum has 2 decimal places.
Therefore, 3000 points for TP means 30 USDT for trading 1 BINANCE:ETHUSDT .
Bagheri IG EtherThis is a technical trading strategy for Ethereum ( BINANCE:ETHUSDT ). We built and developed it on MetaEditor and optimized it with MetaTrader optimizer.
The main indicators are Donchian Channel, Oscillator of ROC, Bears Power, Balance of Power, and Simple Moving Average (SMA). Default values in the input panel are the best combination of these indicators, but you can change any of them and try it for better results.
Please notice that this strategy has been optimized on the 1-minute chart of Ethereum.
For each position, you can see the Take Profit (TP) and Stop Loss (SL) levels. Also, you can find the values of mentioned TP and SL in points from the input panel of the script.
Attention: The price of Ethereum has 2 decimal places.
Therefore, 3000 points for TP means 30 USDT for trading 1 BINANCE:ETHUSDT .
SNAP BACK 2.0 Strategy
This strategy is designed to allow you to catch the bounce or "SNAP Back" of an equity that has been in a trend.
1) Once the moving averages are in the order of 200SMA > 50 SMA > 34EMA > 20SMA > 8EMA (or reverse for and uptrend), the strategy is setup.
2) Next you wait for a trigger of the closing price crossing the 8EMA, while there is a desired gap size between the 8EMA and the 20SMA (2-10% of stock value preferred).
3) Exit position based on target profit reached (conservative sell half at 34EMA and engage a trailing stop loss for remainder or set static limit) or price crosses 8EMA or stop loss%
*)This code also allows you to determine your desired backtesting date compliments of alanaster
This code is the product of many hours of hard work on the part of the greater tradingview community. The credit goes to everyone in the community who has put code out there for the greater good.
The idea for the coding came from a video I watched on YouTube presented by TradeStation called Snap Back - thank you guys for the inspiration.
UPDATE: I have coded the other side of the strategy to allow you to take advantage of the same set-up in an uptrend for Short plays. You can turn the up or downsides on, off, or both.
The main intent is to catch the bounces of a falling stock. However, I have found that you can do the inverse and catch the drops in a rising stock (the latter is not as reliable). This also tends to work better on less volatile stocks. I have included a large volume of user defined conditions and display entry and exit conditions on the chart to see how your choices are impacting the script.
RSI of Ultimate Oscillator [SHORT Selling] StrategyThis is SHORT selling strategy with Ultimate Oscillator. Instead of drectly using the UO oscillator , I have used RSI on UO (as I did in my previous strategies )
Ultimator Oscillator settings are 5, 10 and 15
RSI of UO setting is 5
Short Sell
==========
I have used moving averages from WilliamAlligator indicator --- settings are 10(Lips), 20(teeth) and 50 (Jaw)
when Lips , Teeth and Jaw are aligned to downtrend (that means Lips < Teeth < Jaw )
Look for RSIofUO dropping below 60 ( setting parameter is Sell Line )
Partial Exit
==========
When RSIofUO crossing up Oversold line i.e 30
Cover Short / Exit
=================
When RSIofUO crosisng above overbought line i.e 70
StopLoss
========
StopLoss defaulted to 3 % , Though it is mentioned in settings , it has not been not used to calcuate and StopLoss Exit... Reason is, when RSIofUO already crossed 60 line (for SHORTING) , then it would take more efforts go up beynd 60. There is saying price takes stairs to climb up but it takes elevator to go down. I have not purely depend on this to exit stop loss, however noticed the trades in this stratgey did not get out with loss higher than when RSIofUO reaching 70 level.
Note
======
Williams Alligator is not drawn from the script. It is manually added to chart for illustration purpose. Please add it when you are using this strategy , whch woould give an idea how the strategy is taking Short Trades.
This is tested on Hourly chart for SPY
Bar color changes to purple when the strategy is in SHORT trade
Warning
========
For the eductional purposes only
sma dipsparity and sdvFXBTCJPY 1min contrarian script (2020/1/30)
1分足の逆張りです.
If you want to use other timescale, need to change disparity rate and sdv.
To display disparity(sma) and standard deviation, and to draw a hline(pine function) a certain valu. And lets think. I thought disparity rate 1~1.3 or -1~-1.3 are able to use constrarian trade (and sdv>600).
In bottom, disparity index is auxiliary. It is different from the multiple in the script to make the value easier to understand.
Sorry if the expiration date of the script has expired.
MoneyBible QTUMUSDT BacktesterMoneybible BINANCE:QTUMUSDT backtester on 15m candlestick . It will be re-optimized monthly.
The script is written in PineScript V.3, makes no use of the security() function and does not use the Trailing Stop-Loss function from TradingView. No repainting issue.
DM me for joining discord and getting a trial.
Alert script here :
MoneyBible ETHUSD BacktesterMoneybible BITMEX:ETHUSD backtester on 15m candlestick . It will be re-optimized monthly.
The script is written in PineScript V.3, makes no use of the security() function and does not use the Trailing Stop-Loss function from TradingView. No repainting issue.
Alert script here :
MoneyBible XBTUSD BacktesterMoneybible BITMEX:XBTUSD backtester on 10m candlestick . It will be re-optimized monthly.
The script is written in PineScript V.3, makes no use of the security() function and does not use the Trailing Stop-Loss function from TradingView. No repainting issue.
Alert script here :
[M10] Ichimoku Keltner Channel Scalper [Backtest]Hey all,
This script combines a couple of popular indicators to create a reliable yet versatile opportunity to automate trades based on the Ichimoku Cloud. The idea is to use bullish/bearish Ichimoku crossovers to enter positions whilst taking advantage of a modified Keltner Channel to exit these positions at maximum profit.
The script has been backtested on various timeframes and proves effective in both trending and ranging markets.
I have also added the ability to limit your positions to only long, or short, if this is of preference.
An alerts version of this script is also available at no cost on my page - enjoy!
Any questions? Let me know!
FREE BACKTEST STRATEGY BTC/USDT 15m Binance LONGA long only strategy for trading BINANCE:BTCUSDT in a 15m timeframe built upon Donchian Channels.
The script is already configured for this market /timeframe.
I built it using my generic version that you can request access by leaving a comment:
To get access to the alert setup version and automate the strategy, you need to purchase a subscription on my website .
Thanks for the feedback/support !
RSI Alligator StrategyHello trading family! Just wanted to give a quick write up and share the new code for the RSI Alligator Strategy. I amended it to show every crossover signal, weak and strong, so we can accurately gauge its effectiveness.
Having played with this for a couple hours now I have learned a few things
-Using Heikin Ashi seems to smooth it out a bit and provides about 20% fewer signals, leading to overall more accuracy. However, it can be misleading as the Heikin Ashi opening price doesn't always line up with the market price, especially in cases of large moves. Overall though it didn't seem too far off except for a few instances.
-Also, using the Heikin Ashi gives you a better idea of the trend, which this indicator is primarily used to detect and exploit.
-Having tested on TF of 1H-1D, overall profitability is found to be highest between 4H-12H, with 1D giving the "safest" longer term signals, and lower TF's generating many more signals due to volatility.
-Instead of waiting for the next signal in order to close, you can often use a crossover/crossunder of the 5 and 13 to close the previous trade, especially if paired with a Heikin Ashi of opposite color (green to close a short, red to close a long)
-You will also notice several instances where the Green 5 period show divergences that aren't visible on the regular RSI, another handy little feature
So far I have still only tested this on BTCUSD. Feel free to apply it to any coin and let me know what you find.
Here is the script. If you have any ideas or suggestions please let me know!
CryptoWise4hETHstrategyCrypto Wise 4h ETH Trading Script with Alerts
ETH is very volatile, and that's what makes this script great: Being able to catch the next Move Up or Down.
No repainting.
Better to be used on a 4hr Chart.
No indicator is perfect, but when it gets integrated into a great strategy, and used together with other indicators like the Stoch RSI , you can easily make great trades.
You can get access to the script for $20 / month. Payments accepted in BTC, ETH, LTC, BCH.
72hr Trial given upon request.
Crypto Reversal Scalper DEMO / FREE BacktesterCrypto Reversal Scalper Lite
This is a lite version of:
This script allows anyone to try out the capability of the script with restrictions to some features. If you want to unlock all the features, consider upgrading.
Full version also includes alerts for automated trading.
XPloRR MA-Trailing-Stop StrategyXPloRR MA-Trailing-Stop Strategy
Long term MA-Trailing-Stop strategy with Adjustable Signal Strength to beat Buy&Hold strategy
None of the strategies that I tested can beat the long term Buy&Hold strategy. That's the reason why I wrote this strategy.
Purpose: beat Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
My buy strategy is triggered by the fast buy EMA (blue) crossing over the slow buy SMA curve (orange) and the fast buy EMA has a certain up strength.
My sell strategy is triggered by either one of these conditions:
the EMA(6) of the close value is crossing under the trailing stop value (green) or
the fast sell EMA (navy) is crossing under the slow sell SMA curve (red) and the fast sell EMA has a certain down strength.
The trailing stop value (green) is set to a multiple of the ATR(15) value.
ATR(15) is the SMA(15) value of the difference between the high and low values.
The scripts shows a lot of graphical information:
The close value is shown in light-green. When the close value is lower then the buy value, the close value is shown in light-red. This way it is possible to evaluate the virtual losses during the trade.
the trailing stop value is shown in dark-green. When the sell value is lower then the buy value, the last color of the trade will be red (best viewed when zoomed)(in the example, there are 2 trades that end in gain and 2 in loss (red line at end))
the EMA and SMA values for both buy and sell signals are shown as a line
the buy and sell(close) signals are labeled in blue
How to use this strategy?
Every stock has it's own "DNA", so first thing to do is tune the right parameters to get the best strategy values voor EMA , SMA, Strength for both buy and sell and the Trailing Stop (#ATR).
Look in the strategy tester overview to optimize the values Percent Profitable and Net Profit (using the strategy settings icon, you can increase/decrease the parameters)
Then keep using these parameters for future buy/sell signals only for that particular stock.
Do the same for other stocks.
Important : optimizing these parameters is no guarantee for future winning trades!
Here are the parameters:
Fast EMA Buy: buy trigger when Fast EMA Buy crosses over the Slow SMA Buy value (use values between 10-20)
Slow SMA Buy: buy trigger when Fast EMA Buy crosses over the Slow SMA Buy value (use values between 30-100)
Minimum Buy Strength: minimum upward trend value of the Fast SMA Buy value (directional coefficient)(use values between 0-120)
Fast EMA Sell: sell trigger when Fast EMA Sell crosses under the Slow SMA Sell value (use values between 10-20)
Slow SMA Sell: sell trigger when Fast EMA Sell crosses under the Slow SMA Sell value (use values between 30-100)
Minimum Sell Strength: minimum downward trend value of the Fast SMA Sell value (directional coefficient)(use values between 0-120)
Trailing Stop (#ATR): the trailing stop value as a multiple of the ATR(15) value (use values between 2-20)
Example parameters for different stocks (Start capital: 1000, Order=100% of equity, Period 1/1/2005 to now) compared to the Buy&Hold Strategy(=do nothing):
BEKB(Bekaert): EMA-Buy=12, SMA-Buy=44, Strength-Buy=65, EMA-Sell=12, SMA-Sell=55, Strength-Sell=120, Stop#ATR=20
NetProfit: 996%, #Trades: 6, %Profitable: 83%, Buy&HoldProfit: 78%
BAR(Barco): EMA-Buy=16, SMA-Buy=80, Strength-Buy=44, EMA-Sell=12, SMA-Sell=45, Strength-Sell=82, Stop#ATR=9
NetProfit: 385%, #Trades: 7, %Profitable: 71%, Buy&HoldProfit: 55%
AAPL(Apple): EMA-Buy=12, SMA-Buy=45, Strength-Buy=40, EMA-Sell=19, SMA-Sell=45, Strength-Sell=106, Stop#ATR=8
NetProfit: 6900%, #Trades: 7, %Profitable: 71%, Buy&HoldProfit: 2938%
TNET(Telenet): EMA-Buy=12, SMA-Buy=45, Strength-Buy=27, EMA-Sell=19, SMA-Sell=45, Strength-Sell=70, Stop#ATR=14
NetProfit: 129%, #Trade
Volume & Intraday ScriptI am still learning pinescript, and part of this was created using the Pine Script language reference manual. This includes looking at the time series, a fixed length, and the default intraday_loss variables. This also includes the basic fixed lengths for an swma (Symmetrically weighted moving average) and the script to start creating a strategy. All in all this is just a basic sample of pinescript that you can customize for your trading needs. This can work with Cryptocurrency but these moving averages usually work more efficiently for forex.
Delta Drift Allocator - StrategySummary
Bar-close, drift-based allocation alerts that keep exposure centered around a user-set base with full compounding by default. One alert per bar close. Non-repainting. Invite-Only.
Description
Delta Drift Allocator monitors how far current exposure drifts from a reference profile. When drift exceeds your threshold, it issues a single bar-close instruction (BUY/SELL with quantity) to nudge exposure back toward center. The emphasis is path discipline—rules that react to swings without predicting direction—plus a simple one-alert workflow.
A start-sync input lets you align the script with your actual initial fill so subsequent sizes match your account. Profit handling supports Reinvest (compound) or Skim to base (bookkeep excess).
How to use (overview)
Add to chart (recommended timeframe: 4h).
Set Inputs: drift threshold, min notional, start method (Auto or Manual sync at your bar-close time + filled units).
Create one alert: This strategy → Any alert() function call, Once per bar close. Leave Message empty.
Execute externally: place BUY/SELL for exactly the shown qty (manual or your own webhook executor outside TradingView).
Note: A detailled manual is provided after purchase.
Why traders choose it
Bar-close discipline (no intra-bar churn, non-repainting)
Drift-responsive adjustments that can harvest parts of oscillations
Full compounding by default; optional “skim to base” bookkeeping
Start-sync to match real fills; minimal panel plots you can hide
Access (Invite-Only)
To request access, send me a PM on TradingView. You’ll receive detailled information about the process.
Note: Requests for older strategies are no longer processed—please refer to this release only.
Compliance
Signals only; the script does not place orders or read balances. Backtests are approximations and are not indicative of future results. Markets involve risk, including possible loss. Extended one-way advances can lag all-in exposure; starting right after strong rallies may show initial drawdowns.
/MNQ WAVE (Fusion B-L/S)MNQ WAVE - Fusion Long/Short (EMA, VWAP, WSA, Regime/ATR)
Description
What it is
MNQ WAVE is a fusion strategy for intraday MNQ. It doesn’t take every EMA cross; it waits for price context near VWAP, a simple Weinstein-style trend/volume check (WSA), and a volatility/trend filter. You can run the Regime filter (ADX + ATR relative) or use an ATR threshold fallback. Session blocks help avoid thin/roll periods. Exits combine fixed SL/TP with trailing stops and an optional bars-based auto-close.
Why this mashup
Each piece plays a different role:
EMA cross = timing.
VWAP proximity = avoid chasing stretched moves.
WSA = structure (slope) + healthy volume.
Regime/ATR = align with trend/volatility states.
Together they screen out many low-quality crosses that a single indicator would allow.
How it trades
Long: fast EMA crosses above slow (flat-only) + above/near VWAP within tolerance + WSA long OK + Regime (or ATR) OK + Session OK.
Short: fast crosses below slow (flat-only, and fast < slow) + below/near VWAP + WSA short OK + Regime (or ATR) OK + Session OK.
Risk (defaults): Long SL 1.4%, TP 2.7%, trailing starts at +0.5% with 0.4% trail. Short SL 1.4%, TP 4.5%, trailing starts at −0.5% with 0.4%. Optional auto-close by bars (default off; max 20).
Signals / alerts
Works with either Fills (alert_message) or alert() only. Payloads include entry/SL/TP and a compact indicators block (ATR/ADX) for external routing. No links or promo.
Defaults used in this publication
These match the script so results aren’t misleading:
Initial Capital: $10,000
Order Size: 1 contract (fixed)
Commission: $1.42 per order (cash_per_order - Tastytrade)
Slippage: set in Properties before publishing (recommend ≥ 1 tick for MNQ)
Process orders on close: false
Calc on every tick: false
Backtest fill limits assumption: 0
Minimum required capital: $10,000
Tip: keep per-trade risk within ≤ 5–10% of equity by adjusting size.
Backtest scope & sample size
Designed for intraday MNQ (often used on 5-minute charts, but timeframe is up to you). Aim for >100 trades using a multi-year window. Regime filtering may reduce trade count but often improves quality, no drawdowns observed in the evaluated backtest (where allowed under platform rules, using realistic commissions & slippage); not a guarantee of future results.
----------------------------------------------------------------------------------------------------------------------
Resumen
Estrategia intradía para MNQ que filtra cruces EMA con proximidad a VWAP, un chequeo de tendencia/volumen tipo Weinstein (WSA) y un filtro de régimen (ADX + ATR relativo) o ATR simple. Incluye bloqueos de sesión NY, SL/TP fijos, trailing y cierre opcional por conteo de barras.
Cómo entra y sale
Largos: cruce EMA alcista (solo en flat) + precio por encima/cerca de VWAP dentro de la tolerancia + WSA largo OK + Régimen/ATR OK + Sesión OK.
Cortos: cruce EMA bajista (solo en flat, fast < slow) + precio por debajo/cerca de VWAP + WSA corto OK + Régimen/ATR OK + Sesión OK.
Gestión (por defecto): Largo SL 1.4%, TP 2.7%, trailing desde +0.5% con 0.4%. Corto SL 1.4%, TP 4.5%, trailing desde −0.5% con 0.4%. Cierre por barras opcional (20).
Propiedades por defecto (coinciden con el script)
Capital: $10,000 · Tamaño: 1 contrato · Comisión: $1.42/orden · Slippage: configúralo en Propiedades (sugerido ≥ 1 tick para MNQ) · Process on close: false · Calc on every tick: false · Backtest fill limits: 0.
Sugerencia: mantener el riesgo ≤ 5–10% del capital por operación ajustando el tamaño.
Alcance del backtest
Pensado para intradía MNQ (habitualmente 5m, pero configurable). Busca >100 operaciones con ventana multi-año. El filtro de régimen suele reducir cantidad de trades y mejorar su calidad.
Maiko Range Scalper (Sideways BB + RSI) – v4 cleanPurpose
It’s a range scalping strategy for crypto. It tries to take small, repeatable trades inside a sideways market: buy near the bottom of the range, sell near the middle/top (and the reverse for shorts).
Core idea (two timeframes)
Define the trading range on a higher timeframe (HTF)
You choose the HTF (e.g., 15m or 1h).
The script finds the highest high and lowest low over a lookback window (e.g., last 96 HTF candles) → these become HTF Resistance and HTF Support.
It also calculates the midline (average of support/resistance).
Trade signals on your lower timeframe (LTF)
You run the strategy on a fast chart (e.g., 1m or 5m).
Entries are only allowed inside the HTF range.
Entry logic (mean reversion)
Indicators on the LTF:
Bollinger Bands (length & std dev configurable).
RSI (length & thresholds configurable).
Optional VWAP proximity filter (price must be within X% of VWAP).
Long setup:
Price touches/under-cuts the lower Bollinger band AND RSI ≤ threshold (default 30) AND price is inside the HTF range (and passes VWAP filter if enabled).
Short setup:
Price touches/exceeds the upper Bollinger band AND RSI ≥ threshold (default 70) AND price is inside the HTF range (and passes VWAP filter if enabled).
Exits and risk
Stop-loss: placed just outside the HTF range with a configurable buffer %:
Long SL = HTF Support × (1 − buffer).
Short SL = HTF Resistance × (1 + buffer).
Take-profit (selectable):
Mid band (the Bollinger basis) → conservative, faster exits.
Opposite band / HTF boundary → more aggressive, higher RR but more give-backs.
Position sizing
A simple cap: maximum position size = percent of account equity (e.g., 20%).
The script calculates quantity from that cap and current price.
Plots you’ll see on the chart
HTF Resistance (red) and HTF Support (green) via plot().
HTF Midline (gray dashed) drawn with a line.new() object (because plot() cannot do dashed).
Bollinger basis/upper/lower on the LTF.
Optional VWAP line (only shown if you enable the filter).
Signal markers (green triangle up for Long setups, red triangle down for Short setups).
Alerts
Two alertconditions:
“Long Setup” – when a long entry condition appears.
“Short Setup” – when a short entry condition appears.
Create alerts from these to get notified in real time.
How to use it (quick start)
Add to a 1m or 5m chart of a liquid coin (BTC, ETH, SOL).
Set HTF timeframe (start with 1h) and lookback (e.g., 96 = ~4 days on 1h).
Keep default Bollinger/RSI first; tune later.
Choose TP mode:
“Mid band” for quick scalps.
“Opposite band/Range” if the range is very clean and you want bigger targets.
Set SL buffer (0.15–0.30% is common; adjust for volatility).
Set Max position % to control size (e.g., 20%).
(Optional) Enable VWAP filter to skip stretched moves.
When it works best
Clearly sideways markets with visible support/resistance on the HTF.
High-liquidity pairs where spreads/fees are small relative to your scalp target.
Limitations & safety notes
True breakouts will invalidate mean-reversion logic—your SL outside the range is there to cut losses fast.
Fees can eat into small scalps—prefer limit orders, rebates, and liquid pairs.
Backtest results vary by exchange data; always forward-test on small size.
If you want, I can:
Add an ATR-based stop/target option.
Provide a study-only version (signals/alerts, no trading engine).
Pre-set risk to your €5,000 plan (e.g., ~0.5% max loss/trade) with calculated qty.
EMA inFusion Pro - Multiple SourcesEMA Fusion Pro: Dynamic Trend & Momentum Strategy with Three Exit Modes
EMA Fusion Pro is a highly customizable, multi-exit trend-following strategy designed for traders who value both precision and flexibility. By leveraging exponential moving averages (EMA), average directional index (ADX), and volume analysis, this strategy aims to capture trending market moves while offering three distinct exit modes for optimal risk management across varying market conditions.
Strategy Overview
This strategy systematically identifies potential entry points using a moving average crossover with highly configurable data sources (including price, volume, rate of change, or their Heikin Ashi versions) and filters signal quality with ADX trend strength and volume spikes. Each trade is managed with one of three advanced exit methodologies—reverse signal, ATR-based stop/take profit, or fixed percentage—giving you the control to adapt your risk profile to different market regimes.
Key Features
Customizable EMA Source: Calculate the core trend-filtering EMA from price (default), volume, rate of change, or their Heikin Ashi counterparts for unique market perspectives.
Trend Filter with ADX: Confirm entries only when the trend is strong, as measured by the user-adjustable ADX threshold.
Volume Spike Confirmation: Optional filter to only take trades with above-average volume activity, reducing false signals.
Three Exit Modes:
Reverse Signal: Exit trades when a new, opposite entry signal occurs.
ATR-Based Stop/Take Profit: Dynamic risk management using multiples of the average true range (ATR) for both take profit and stop loss.
Percent-Based Stop/Take Profit: Fixed-percentage risk management with user-defined thresholds.
Visual Annotations: Signal markers, EMA line color-coded by source, trend background coloring, and optional ATR/percent-based TP/SL levels.
Info Panel: Real-time display of all core indicators, current trading mode, exit parameters, and position status for quick oversight.
How It Works
Entry Logic: A crossover signal (above/below the EMA) triggers a new entry, but only if both ADX trend strength and (optionally) volume spike conditions are met.
Exit Logic: Three selectable modes allow you to exit trades on reverse signals, at a dynamic ATR-based profit or loss, or at a fixed percentage gain/loss.
Flexible Data Analysis: The EMA source can be chosen from six options—standard price, volume, rate of change, or their Heikin Ashi variants—allowing experimentation with different market dimensions.
Risk Management: All exits are precisely controlled, either by the next opposing signal, by volatility-adjusted levels, or by fixed risk/reward ratios.
Backtest & Optimization: The strategy is fully backtestable within TradingView’s Strategy Tester, with adjustable parameters for optimization.
Customization & Usage
Indicator Source: Select your preferred data type for EMA calculation, opening the door to creative strategy variations (e.g., volume momentum, pure price trend, rate of change divergence).
Filter Toggles: Enable/disable ADX and volume filters as desired—useful for different market environments.
Exit Mode Selection: Switch between reverse, ATR, or percent-based exits with a single parameter—ideal for adapting to ranging vs. trending markets.
Visual Clarity: The EMA line color reflects its underlying source, and the info panel summarizes all critical values for easy monitoring.
Who Should Use This Strategy?
Trend Followers seeking to ride strong moves with multiple exit options.
Experienced Traders who want to experiment with different data types (volume, momentum, Heikin Ashi) for trend analysis.
Algorithmic Traders looking for a robust, flexible base to build upon with their own ideas.
Getting Started
Apply the script to your chart and review default settings.
Customize parameters—EMA length, ADX threshold, volume settings, exit type—as desired.
Backtest on multiple instruments and timeframes to evaluate performance.
Optimize filters, exit rules, and risk parameters for your preferred trading style.
Monitor with the real-time info panel and trade alerts.
Disclaimer
This script is for educational and entertainment purposes only. It is not financial advice. Past performance is not indicative of future results. Always conduct thorough testing and consider your risk tolerance before trading real capital.
— Happy Trading —
Feel free to adapt, share, and contribute to this open-source strategy!
Ifvgs with Targets
This strategy identifies inversion fair value gaps on the 1-5 minute timeframe that occur with a 5 or 15 minute unfilled fair value gap existing in the direction of the trade.
The script marks out the 5 and 15 minute unfilled gap targets with red and green lines.
The script also calculates how many contracts to enter based on the risk and dollar per point value that you set in the settings.
Trades are triggered upon a candle closure that inverses the fair value gap. When a trade is triggered, a bold red line is drawn at the suggested stop loss (low of the body of the gap), and a bold green line is drawn at the price level that is a 1R distance from the entry.
This strategy will only run on the 1-5 minute timeframes, and is designed specifically for Nasdaq futures (NQ or MNQ).
The suggested way to use this indicator is by adding alerts to be notified when an IFVG occurs.
Add alerts by going to the three dots next to the indicator, selecting "Add alert", and then setting the condition to "alert() function calls only". This will alert you on potential trades before the trade actually triggers on the candle closure, so you have time to look at the setup before the entry.
Do not follow this indicator blindly, always do your own analysis and use this as a tool.
The Barking Rat LiteMomentum & FVG Reversion Strategy
The Barking Rat Lite is a disciplined, short-term mean-reversion strategy that combines RSI momentum filtering, EMA bands, and Fair Value Gap (FVG) detection to identify short-term reversal points. Designed for practical use on volatile markets, it focuses on precise entries and ATR-based take profit management to balance opportunity and risk.
Core Concept
This strategy seeks potential reversals when short-term price action shows exhaustion outside an EMA band, confirmed by momentum and FVG signals:
EMA Bands:
Parameters used: A 20-period EMA (fast) and 100-period EMA (slow).
Why chosen:
- The 20 EMA is sensitive to short-term moves and reflects immediate momentum.
- The 100 EMA provides a slower, structural anchor.
When price trades outside both bands, it often signals overextension relative to both short-term and medium-term trends.
Application in strategy:
- Long entries are only considered when price dips below both EMAs, identifying potential undervaluation.
- Short entries are only considered when price rises above both EMAs, identifying potential overvaluation.
This dual-band filter avoids counter-trend signals that would occur if only a single EMA was used, making entries more selective..
Fair Value Gap Detection (FVG):
Parameters used: The script checks for dislocations using a 12-bar lookback (i.e. comparing current highs/lows with values 12 candles back).
Why chosen:
- A 12-bar displacement highlights significant inefficiencies in price structure while filtering out micro-gaps that appear every few bars in high-volatility markets.
- By aligning FVG signals with candle direction (bullish = close > open, bearish = close < open), the strategy avoids random gaps and instead targets ones that suggest exhaustion.
Application in strategy:
- Bullish FVGs form when earlier lows sit above current highs, hinting at downward over-extension.
- Bearish FVGs form when earlier highs sit below current lows, hinting at upward over-extension.
This gives the strategy a structural filter beyond simple oscillators, ensuring signals have price-dislocation context.
RSI Momentum Filter:
Parameters used: 14-period RSI with thresholds of 80 (overbought) and 20 (oversold).
Why chosen:
- RSI(14) is a widely recognized momentum measure that balances responsiveness with stability.
- The thresholds are intentionally extreme (80/20 vs. the more common 70/30), so the strategy only engages at genuine exhaustion points rather than frequent minor corrections.
Application in strategy:
- Longs trigger when RSI < 20, suggesting oversold exhaustion.
- Shorts trigger when RSI > 80, suggesting overbought exhaustion.
This ensures entries are not just technically valid but also backed by momentum extremes, raising conviction.
ATR-Based Take Profit:
Parameters used: 14-period ATR, with a default multiplier of 4.
Why chosen:
- ATR(14) reflects the prevailing volatility environment without reacting too much to outliers.
- A multiplier of 4 is a pragmatic compromise: wide enough to let trades breathe in volatile conditions, but tight enough to enforce disciplined exits before mean reversion fades.
Application in strategy:
- At entry, a fixed target is set = Entry Price ± (ATR × 4).
- This target scales automatically with volatility: narrower in calm periods, wider in explosive markets.
By avoiding discretionary exits, the system maintains rule-based discipline.
Visual Signals on Chart
Blue “▲” below candle: Potential long entry
Orange/Yellow “▼” above candle: Potential short entry
Green “✔️”: Trade closed at ATR take profit
Blue (20 EMA) & Orange (100 EMA) lines: Dynamic channel reference
⚙️Strategy report properties
Position size: 25% equity per trade
Initial capital: 10,000.00 USDT
Pyramiding: 10 entries per direction
Slippage: 2 ticks
Commission: 0.055% per side
Backtest timeframe: 1-minute
Backtest instrument: HYPEUSDT
Backtesting range: Jul 28, 2025 — Aug 17, 2025
Note on Sample Size:
You’ll notice the report displays fewer than the ideal 100 trades in the strategy report above. This is intentional. The goal of the script is to isolate high-quality, short-term reversal opportunities while filtering out low-conviction setups. This means that the Barking Rat Lite strategy is very selective, filtering out over 90% of market noise. The brief timeframe shown in the strategy report here illustrates its filtering logic over a short window — not its full capabilities. As a result, even on lower timeframes like the 1-minute chart, signals are deliberately sparse — each one must pass all criteria before triggering.
For a larger dataset:
Once the strategy is applied to your chart, users are encouraged to expand the lookback range or apply the strategy to other volatile pairs to view a full sample.
💡Why 25% Equity Per Trade?
While it's always best to size positions based on personal risk tolerance, we defaulted to 25% equity per trade in the backtesting data — and here’s why:
Backtests using this sizing show manageable drawdowns even under volatile periods.
The strategy generates a sizeable number of trades, reducing reliance on a single outcome.
Combined with conservative filters, the 25% setting offers a balance between aggression and control.
Users are strongly encouraged to customize this to suit their risk profile.
What makes Barking Rat Lite valuable
Combines multiple layers of confirmation: EMA bands + FVG + RSI
Adaptive to volatility: ATR-based exits scale with market conditions
Clear, actionable visuals: Easy to monitor and manage trades
The Barking Rat ReversionsMean Reversion with Multi-Layered Precision
The Barking Rat Reversions is a short-term mean reversion strategy tailored for high-volatility markets. It combines several well-established technical tools in a configuration to identify overextended price movements likely to revert toward equilibrium. The goal is to isolate high-quality, short-term reversal opportunities while filtering out low-conviction setups.
At its core, our strategy triggers off Fair Value Gaps (FVGs) that occur a considerable distance away from a dynamically defined equilibrium band. It then validates these gaps by checking proximity to recent support and resistance drawn from swing extremes.
Additional confirmation comes from momentum filters and wick-rejection patterns, ensuring each entry aligns with both price structure and stretched momentum. Exits use volatility-adjusted profit targets. Keeping the approach disciplined and adaptive.
🧠Core Logic: Selectivity & Structure
This strategy is intentionally very selective. We have designed it to filter out roughly 95% of all market noise, highlighting only setups that pass multiple validation layers outlined below.
Fair Value Gaps (FVGs) as the Primary Trigger
FVGs identify imbalance zones where price historically retraces. These inefficient zones often become magnets for reversion as the market seeks to rebalance.
Dynamic Equilibrium Band + S/R
Defines a fair value zone with a long-term moving average and combines it with shorter-term swing pivots to establish support/resistance. Only FVGs that occur outside the band and near recent pivots are considered, ensuring reversals are sufficiently distanced and not taken too close to the mean.
Proximity to Support/Resistance
Setup validity depends on location. The strategy filters for FVGs near well-defined structural levels — areas where price has previously turned (i.e., recent swing highs or lows). This increases the likelihood that reversals are occurring at legitimate zones of confluence.
Wick-Rejection Confirmation
Confirms potential exhaustion through characteristic candle wick patterns beyond the equilibrium region. This acts as another filter to improve signal accuracy.
Sequential Filtered Signals
Custom logic ensures that a new signal in any direction must improve upon the previous one, preventing repetitive or suboptimal entries.
Multi-Step Confirmation
All validation layers must coincide on the same bar before a signal triggers, dramatically reducing false positives.
📈Chart Visuals: Designed for Clarity
To ensure transparency and easy interpretation, the script overlays intuitive visuals:
Green “▲” below a candle: Indicates a potential long entry
Red “▼” above a candle: Indicates a potential short entry
Green “✔️”: Marks exit from a trade when ATR target is met
Background shading (green/red): Indicates trade direction while active
Support/Resistance lines: Auto-plotted from recent swing levels
🔔Alerts: Stay Notified Without Watching
The strategy supports real-time alerts on candle close, ensuring that signals are only triggered once fully confirmed.
You must manually set up alerts within your TradingView account. Once configured, you’ll be able to set up one alert per instrument. This one alert covers all relevant signals and exits — ideal for hands-free monitoring.
⚙️Strategy report properties
Position size: 25% equity per trade
Initial capital: 10,000.00 USDT
Pyramiding: 10 entries per direction
Slippage: 2 ticks
Commission: 0.055% per side
Backtest timeframe: 1-minute
Backtest instrument: HYPEUSDT
Backtesting range: Jul 21, 2025 — Aug 7, 2025
Note on Sample Size:
You’ll notice the report displays fewer than the ideal 100 trades in the strategy report above. This is intentional. The goal of the script is to isolate high-quality, short-term reversal opportunities while filtering out low-conviction setups. This means that the Barking Rat Reversions strategy is ultra-selective, filtering out over 95% of market noise by enforcing multiple validation layers. The brief timeframe shown in the strategy report here illustrates its filtering logic over a short window — not its full capabilities. As a result, even on lower timeframes like the 1-minute chart, signals are deliberately sparse — each one must pass all criteria before triggering.
We conducted a broader backtest covering the period from December 5, 2024 to July 31, 2025, during which the strategy identified 968 high-probability setups on the same instrument and timeframe as the strategy report.
For a larger dataset:
Once the strategy is applied to your chart, users are encouraged to expand the lookback range or apply the strategy to other volatile pairs to view a full sample.
💡Why 25% Equity Per Trade?
While it's always best to size positions based on personal risk tolerance, we defaulted to 25% equity per trade in the backtesting data — and here’s why:
Backtests using this sizing show manageable drawdowns even under volatile periods
The strategy generates a sizeable number of trades, reducing reliance on a single outcome
Combined with conservative filters, the 25% setting offers a balance between aggression and control
Users are strongly encouraged to customize this to suit their risk profile.
🔍What Makes This Strategy Unique?
Multi-factor confirmation using FVGs, EMA deviation, RSI, wick rejection, and S/R
Clean, Intuitive Chart Experience
Real-time alerts triggered only on confirmation
Variables monitor prior reversal points, guaranteeing each new signal offers an improved entry
Tracks active positions and resets filters upon exit.